package com.xiaoshuidi.cloud.module.report.dal.mapper.report;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.xiaoshuidi.cloud.framework.mybatis.core.mapper.BaseMapperX;
import com.xiaoshuidi.cloud.module.report.controller.finance.vo.CollectInAdvanceReqVO;
import com.xiaoshuidi.cloud.module.report.dal.DO.report.CollectInAdvanceDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
@InterceptorIgnore(tenantLine = "true")
public interface CollectInAdvanceMapper extends BaseMapperX<CollectInAdvanceDO> {


    CollectInAdvanceDO selectRentAdvanceByContractIdAndMonth(@Param("contractId") Long contractId );

    long countListForPage(@Param("req") CollectInAdvanceReqVO reqVO);

    List<CollectInAdvanceDO> selectListForPage(@Param("req") CollectInAdvanceReqVO reqVO);

    List<CollectInAdvanceDO> selectListForExport(@Param("req") CollectInAdvanceReqVO reqVO);

    List<CollectInAdvanceDO> selectAdvancesByContractIdAndMonth(@Param("contractId") Long contractId , @Param("statisticsMonth") String statisticsMonth);

    List<CollectInAdvanceDO> selectListFoExport(@Param("req") CollectInAdvanceReqVO reqVO);

    CollectInAdvanceDO selectTotalAmountInMonth(@Param("req") CollectInAdvanceReqVO reqVO);
}
